/*
 * @Author: 陈迪秀 1170776994@qq.com
 * @Date: 2024-03-06 15:41:53
 * @LastEditors: 陈迪秀 1170776994@qq.com
 * @LastEditTime: 2024-03-06 15:56:13
 * @FilePath: \vite-project\src\components\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import SvgIcon from './SvgIcon/index.vue';
import HeaDer from './HeaDer/index.vue'
//引入element-plus提供全部图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const allGloablComponent: any = { SvgIcon, HeaDer }
export default {
    install(app: any) {
        Object.keys(allGloablComponent).forEach(key => {
            app.component(key, allGloablComponent[key]);
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}